Forge Authentication
GitHub and GitLab CLI setup for branch publishing and review-request publishing.
Agentty uses plain Git for branch publishing and then uses the forge CLI for pull-request or merge-request actions.
p pushes the branch before creating a review request. Authenticate both Git and the forge CLI: HTTPS remotes need Git credentials; SSH remotes need an SSH key.
For the session-view publish flow, see Workflow.
GitHub🔗
Use this setup when the repository remote is on GitHub.
- Run
gh auth login. - Choose the target host such as
github.com. - Pick the Git protocol Agentty should use for branch publishing:
httpsorssh. - If you picked
https, rungh auth setup-gitafter login so Git can useghas a credential helper for branch pushes. - Verify the setup with
gh auth status.
GitLab🔗
Use this setup when the repository remote is on GitLab.
- Run
glab auth login. - Choose the target host such as
gitlab.comor your self-hosted hostname. - Pick the Git protocol Agentty should use for branch publishing:
httpsorssh. - Verify the CLI login with
glab auth status --hostname <hostname>. - If you picked
https, also configure Git itself for HTTPS pushes: either a credential helper or a personal access token that Git can use whengit pushprompts for credentials.
If glab auth status says you are authenticated but Agentty still reports a push-authentication failure, the missing piece is Git HTTPS credentials rather than glab authentication.